package com.wealth.lottery.service;

import java.util.List;

import com.wealth.lottery.entity.LotteryRecord;

import iaas.service.IBaseService;
/**
 * ILotteryRecordService
 * @author lihang 2016-06-27
 *
 */
import iaas.utils.ResultObject;
public interface ILotteryRecordService extends IBaseService<LotteryRecord>{
	/**查询抽奖总次数*/
	int getLotteryRecodeNum(Long activityid) throws Exception;
	
	/**
	 * 为用户添加以一条抽奖记录
	 * @param statu
	 * @param activityid
	 * @param prizeid
	 * @param fansid
	 * @throws Exception
	 */
	LotteryRecord addMemberRecode(int statu,Long corpid,Long activityid,Long prizeid,Long memberid) throws Exception;
	List<LotteryRecord> getLotteryRecordByCorpId(Long corpId) throws Exception;

	/** 查询会员的抽奖记录 */
	List<LotteryRecord> getLotteryRecordByMemberId(Long memberid) throws Exception;
	
	/**查询会员抽奖记录（分页）*/
	ResultObject getLotteryRecordByMemberIdPage(Integer pageSize,Integer pageNumber,Long memberId,Long lotteryid) throws Exception;
	
}
